<%-- 
    Document   : order
    Created on : Mar 19, 2013, 4:05:19 PM
    Author     : duonghung1369
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@taglib uri="/struts-tags" prefix="s" %>

<%-- any content can be specified here e.g.: --%>
<table class="data display datatable">
    <thead>
        <tr>
            <td class="sorting_asc" >Id</td>
            <td class="sorting" >Confirmation Number</td>
            <td class="sorting" >Customer</td>
            <td class="sorting" >Placed Date</td>
            <td class="sorting" >Delivery Date</td>
            <td class="sorting" >Order Amount</td>
            <td class="sorting" >Status</td>
        </tr>
    </thead>
    <s:iterator value="orders" status="orderStatus" id="order">
        <tbody>
            <tr class="odd">
                <td><s:property value="id" /></td>
                <td><s:property value="confirmationString"/></td>
                <td><s:property value="user.username"/></td>
                <td><s:property value="placedDatetime" /></td>
                <td><s:property value="deliveredDatetime" /></td>
                <td><s:property value="subAmount" /></td>
                <td><s:property value="orderStatus.description" /></td>
            </tr>
        </tbody>

    </s:iterator>
</table>